package com.stars.entity.sys;

import com.stars.common.base.BaseUUID;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * 角色关联
 */
@Data
@Table(name = "system_user_relation")
public class SystemUserRelation  extends BaseUUID {
    /**
     * 用户组id
     */
    @NotNull(message = "用户组id不能为空!")
    @Column(name = "relation_user_id")
    private String relationUserId;

    /**
     * 角色组id
     */
    @NotNull(message = "角色组id不能为空!")
    @Column(name = "relation_user_role_id")
    private String relationUserRoleId;


}